<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 19-4-9
 * Time: 上午11:37
 */

namespace common\models;


/**
 * Class NbrbAdditionalRecordApply
 * @package common\models
 *
 * @property NbrbRequestLog $nbrbRequestLog
 * @property NbrbCustomAdmittance $nbrbCustomAdmittance
 */
class NbrbAdditionalRecordApply extends \common\models\base\NbrbAdditionalRecordApply
{
    const STATUS_ACTIVE = 10;

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getNbrbRequestLog()
    {
        return $this->hasOne(NbrbRequestLog::className(), ['request_seq_no' => 'request_seq_no']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getNbrbCustomAdmittance()
    {
        return $this->hasOne(NbrbCustomAdmittance::className(), ['order_number' => 'req_order_number']);
    }
}